package br.ufpb.di.ppgi.negocio.modelo.participa;

import java.io.Serializable;

import javax.persistence.Embeddable;
import javax.persistence.ManyToOne;

import br.ufpb.di.ppgi.negocio.modelo.defesa.Defesa;
import br.ufpb.di.ppgi.negocio.modelo.usuario.Usuario;

@Embeddable
public class ParticipaDefesaPK implements Serializable{

	private static final long serialVersionUID = 6457705130779765340L;

	@ManyToOne(optional=false)
	private Usuario professor;
	
	@ManyToOne(optional=false)
	private Defesa defesa;

	public ParticipaDefesaPK() {
		
	}
	
	public ParticipaDefesaPK(Usuario professor, Defesa defesa) {
		super();
		this.professor = professor;
		this.defesa = defesa;
	}

	public Usuario getProfessor() {
		return professor;
	}

	public void setProfessor(Usuario professor) {
		this.professor = professor;
	}

	public Defesa getDefesa() {
		return defesa;
	}

	public void setDefesa(Defesa defesa) {
		this.defesa = defesa;
	}
	
	
}
